package com.wx.springboot.step9back.service.impl;

import com.wx.springboot.step9back.mapper.CodeTableMapper;
import com.wx.springboot.step9back.model.CodeTable;
import com.wx.springboot.step9back.service.CodeTableService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("codeTableService")
public class CodeTableServiceImpl implements CodeTableService {

    @Autowired
    private CodeTableMapper codeTableMapper;


    @Override
    public List<CodeTable> getCodeByType(String type) {
        return codeTableMapper.getCodeByType(type);
    }
}
